var list = new List<int> { 1, 2, 3, 4, 5, 6, 7, 16, 17 };
// MAX
Console.WriteLine("MAX=>" + list.Max(z => z));
// MIN
Console.WriteLine("MIN=>" + list.Min(z => z));